package com.zzh.lib.views.interpolator;


import android.view.animation.Interpolator;

import com.zzh.lib.views.utils.Ease;

import androidx.annotation.NonNull;

/**
 * Created by ZZH on 2022/8/15.
 *
 * @Date: 2022/8/15
 * @Email: zzh_hz@126.com
 * @QQ: 1299234582
 * @Author: zzh
 * @Description:
 */
public class EasingInterpolator implements Interpolator {

    private final Ease ease;

    public EasingInterpolator(@NonNull Ease ease) {
        this.ease = ease;
    }

    @Override
    public float getInterpolation(float input) {
        return EasingProvider.get(this.ease, input);
    }

    public Ease getEase() {
        return ease;
    }
}
